package cn.cdeden.aiqa.domain.bo;

import cn.cdeden.aiqa.domain.SysKnowledgeConfig;
import cn.cdeden.common.core.validate.AddGroup;
import cn.cdeden.common.core.validate.EditGroup;
import cn.cdeden.common.mybatis.core.domain.BaseEntity;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;

/**
 * 知识库配置11业务对象 sys_knowledge_config
 *
 * @author Nick
 * @date 2024-12-06
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SysKnowledgeConfig.class, reverseConvertGenerate = false)
public class SysKnowledgeConfigBo extends BaseEntity {

    /**
     * 主键ID
     */
    @NotNull(message = "主键ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 配置名称
     */
    @NotBlank(message = "配置名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String configName;

    /**
     * 配置键名
     */
    @NotBlank(message = "配置键名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String configKey;

    /**
     * 配置键值
     */
    @NotBlank(message = "配置键值不能为空", groups = { AddGroup.class, EditGroup.class })
    private String configValue;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    /**
     * 更新时间
     */
    @NotNull(message = "更新时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date updatedAt;


}
